package com.tedu.serverbill;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

//调用server-user中的userController
@FeignClient("service-user") //微服务提供者的服务名
public interface UserAPIFeignClient {

    //从微服务服务提供者UserController中拷贝过来
    @PostMapping("/getVehicle")
    public String getVehicle(@RequestBody UserQuery userQuery);

}
